/*
 * ServerMessageListener.h
 *
 *  Created on: 14/06/2014
 *      Author: javier
 */

#ifndef SERVERMESSAGELISTENER_H_
#define SERVERMESSAGELISTENER_H_

#include "Thread.h"
#include "ClientSocket.h"

class BZPController;

class ServerMessageListener: public Thread {
public:
	ServerMessageListener(BZPController* controller, ClientSocket& socket);
	void run();
	void init();
	virtual ~ServerMessageListener();
	void setIdJugador(int idJugador);

private:
	BZPController* controller;
	ClientSocket& socket;
	bool conected;
	int idJugador;
};

#endif /* SERVERMESSAGELISTENER_H_ */
